package com.ygl.core.loadbalance.weight;

import com.netflix.loadbalancer.Server;
import com.ygl.common.entity.WeightFilterEntity;
import com.ygl.core.adapter.CoreAdapter;

/**
 * @Author yanggld
 * @Date 2019/12/17-18:28
 * @Description
 */
public abstract class AbstractWeightRandomLoadBalanceAdapter {

	protected CoreAdapter coreAdapter;

	public AbstractWeightRandomLoadBalanceAdapter(CoreAdapter coreAdapter) {
		this.coreAdapter = coreAdapter;
	}

	public abstract WeightFilterEntity getT();

	public abstract int getWeight(Server server, WeightFilterEntity t);
}
